﻿using UnityEngine;

namespace Script.Player.ProjetctWinterState
{
    public class EveningState : BaseWorldState
    {
        
        public override void EnterState(ProjectWinter WinterProject)
        {
            StatehpAttenuationCorrection= 0.5f;
            currentProjectWinter = WinterProject;
            StateTime = 3f;
        }

        public override void LogicicUpdate()
        {
            StateTime -= Time.deltaTime;
            if (StateTime <= 0)
            {
                currentProjectWinter.ChangeState(new AfternoonState());
            }
        }

        public override void PhyUpdate()
        {
            
        }

        public override void ExitState()
        {
            
        }
    }
}